package com.binguo.model.mapper;

import com.binguo.model.core.Mapper;
import com.binguo.model.model.EmployeeLoginHistory;
import org.apache.ibatis.annotations.Select;

public interface EmployeeLoginHistoryMapper extends Mapper<EmployeeLoginHistory> {

    @Select("SELECT employeeId FROM employee_login_history WHERE deskId = #{deskID} ORDER BY created DESC LIMIT 0,1")
    Integer getEmployeeId(Integer deskID);
}